#include "include/user.hpp"
#include "include/tools/Hash.hpp"
#include <string>
#include "QDebug"

User::User(const QString &username, const QString &password)
    : m_username(username), m_password(password) {}

QString User::getUsername() const { return m_username; }

std::string User::getPassword() const { return m_password.toStdString(); }

bool User::checkPassword(const QString &password) const {
  return m_password.toStdString() == password.toStdString();
}
